<link href="../addons/jy_levelfee/custom/templates/mobile/style.css?v=201805251730" rel="stylesheet">
<div class='fui-page fui-page-current page-commission-myshop'>
    <div class='fui-content'>
	<div class="myshop-header">
	    <div class="image">
			<img ng-src="{{tomedia(pagedata.myshop.img) || '../addons/jy_levelfee/resource/images/myshoptop.jpg'}}"  />
	    </div>	   
	    <div class="menus">
		 <div class='shopname'>
	      {{pagedata.myshop.title || '未定义小店名称'}}
	    </div>
		 
		<div class="shoplogo">
		    <img ng-src="{{pagedata.myshop.logo || '../core/resource/images/nopic.jpg'}}"  />
		</div>
		<div class="nav" >
		    <p>{{pagedata.goodscount || 0}}</p>
		    <p>全部宝贝</p>
		</div>
		<div class="nav btn-qrcode"  ng-click="access_json('/qrcode//mid='+pagedata.mid)">
		    <p><i class="icon jinyunicon icon-qrcode"></i></p>
		    <p>二维码</p> 
		</div>
	    </div>
		
	</div>
	<div class="fui-searchbar">
	    <div class="searchbar center">
		<div class="search-input">
			<i id="searchsub" class="fa fa-search" ng-click="tool.get_list('jy_levelfee/myshop/list/mid='+scope.pagedata.mid,true)"></i>
		    <input type="search" ng-model="pagedata.params.keyword" class="search" placeholder="输入关键字...">
		</div>
	    </div>
	</div>
	<div class="fixed-title">
							 <span class="befirst spacing">
								 <span class="icon icon-icon-xiexiantiao" style="color:#efadb0"></span>
								 <span class="icon icon-icon-xiexiantiao" style="color:#e26d71"></span>
								 <span class="icon icon-icon-xiexiantiao" style="color:#d62f35"></span>
							 </span> 
							 <span class="title-text">小店推荐</span> 
							 <span class="spacing">
								 <span class="icon icon-icon-xiexiantiao" style="color:#d62f35"></span>
								 <span class="icon icon-icon-xiexiantiao" style="color:#e26d71"></span>
								 <span class="icon icon-icon-xiexiantiao" style="color:#efadb0"></span>
							 </span>
	</div>
	<div class="fui-goods-group block" id='container'>
	<div ng-repeat="g in pagedata.list" id="goodslist" class="fui-goods-item">
			<a ng-click="access_json('jy_weishop/goods.detail//frommyshop='+pagedata.myshop.mid+'&id='+g.id)">
						<div class="image" style="background-image:url('{{tomedia(g.image) || '../core/resource/images/nopic.jpg'}}')">
							<div ng-if="g.total<=0" class="salez" style="background-image: url('{{tomedia(pagedata.shopset.saleout)}}'); "></div>
						</div>
			</a>
			<div class="detail">
						<a ng-click="access_json('jy_weishop/goods.detail//frommyshop='+pagedata.myshop.mid+'&id='+g.id)">
							<div class="name">{{g.title}}</div>
						</a>
						<div class="price">
							<span class="text">￥{{g.price}}</span>
							
						</div>
						<div ng-if="g.commission_money" class="goods-tag"><div class="fui-tag fui-tag-danger fee-tag">预估赚￥{{g.commission_money}}</div></div>
			</div>
	</div>
	</div>
	<div ng-if="loading" class='infinite-loading' style="text-align: center; color: #666;">
		<span class='fui-preloader'></span>
		<span class='text'> 正在加载...</span>
	</div>
	
	<div ng-include="sys_html('_copyright')"></div>
    </div>
	<div id='cover' ng-if="showcover ==1">
			<div class='fui-mask-m visible'></div>
			<div class='arrow'></div>
			<div class='content'>请点击右上角<br/>通过【收藏】<br/>方便下次浏览</div>
	</div>
	<div ng-if="pagedata.list.length<1" style="text-align: center; color: #666;">
		<span class="text"> 暂无商品</span>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
scope.pagedata.mid=scope.pagedata.mid?scope.pagedata.mid:'';
scope.tool.get_list('jy_levelfee/myshop/list/mid='+scope.pagedata.mid,true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_levelfee/myshop/list/mid='+scope.pagedata.mid);
}

</script>